<% rows.forEach(function(item){ %>
	<div class="wrap-box">
		<div class="ticket-item">
		    <div class="rowsinfo">
				<div class="p-title"><%= item.title %></div>
				<div class="p-tags">
						<% if(item.validityType==1){ %>
						 限今日出游
						<% }else if(item.validityType==2){ %>
						有效期至：<%= item.validEndDate.replace(/(\d+-\d+-\d+).*/,"$1") %>
						<% }else{ %>
							<% var startgap=parseInt(item.takeInvalidTime) %>
							<% if(startgap>0){ %>
								<% if(item.changeValidityFlag==1){ %>
									<%= item.takeInvalidTime %>日内有效
								<% }else if(item.changeValidityFlag==2){ %>
									 
									  <% if(startgap>=1440) {%>
										  <%=Math.floor(startgap/1440)%>天<% if(Math.floor((startgap%1440)/60)>0){ %><%= Math.floor((startgap%1440)/60)%>小时<% } %><% if(startgap%60){ %><%= startgap%60 %>分钟<% } %>
									   <% }else if(startgap>=60){ %>
											<% if(Math.floor(startgap/60)>0){ %><%=Math.floor(startgap/60)%><% } %>小时<% if(Math.floor(startgap%60)>0){ %><%=Math.floor(startgap%60)%>分钟<% } %>
									   <% }else{ %>
											<%=startgap%>分钟
									   <% } %>
									   内有效
								<% } %>
							<% }else{ %>
                                 立即生效							
							<% } %>
							
							
						<% } %>
				</div>
				<div class="ticket-info">
					<div class="price-box"><span class="price"><em>&yen;</em><%= item.saleprice %></span> <del>&yen;<%= item.listprice %></del><span data-id="<%= item.id %>" class="order-notice"><span>预定须知</span><i class="icon-min-right"></i></span></div>				 
				</div>
			</div>
			<div class="rowsbtn"><button type="button" class="btn-white" data-min="<%= item.min %>" data-max="<%= item.max %>"  data-time="<%=date%>" data-spcode="<%= item.spcode %>" data-intro="<% if(item.max!=99) {%>(同一用户每日限购<%=item.max%>张)<% } %>" data-apiurl="<%= item.couponAPIUrl %>" data-goodsid="<%= item.id %>" data-goodsno="<%= item.goodsno %>" data-price="<%= item.saleprice %>" data-idcard="<%= item.needIdCard %>">购票</button></div>
		</div>
		<div class="semicircle"><div class="semicircle-right"></div><div class="semicircle-line"></div><div class="semicircle-left"></div></div>
	</div>
<% }) %>